<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	
	<link rel="stylesheet" type="text/css" href="../../css/base.css" />
    <script type="text/javascript" src="../../js/base.js" ></script>
	<link rel="stylesheet" type="text/css" href="../../easy-ui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../easy-ui/themes/icon.css">

	<script type="text/javascript" src="../../easy-ui/jquery.min.js"></script>
	<script type="text/javascript" src="../../easy-ui/jquery.easyui.min.js"></script>
</head>


<body class="easyui-layout" data-options="fit:true" style="overflow:hidden;">
	
		
	
		<div data-options="region:'north',border:false," style="height:38px">
		
			<table border="0" cellpadding="0" cellspacing="3" class="data-table">
			
			
				<!-- 表格的布局控制 -->
								<tr class="data-table-base-tr">
								<td  class="data-table-label"  style="width:85px;">
								</td>
								<td id="table_input_base" >
								</td>
								
								<td  class="data-table-right-margin"></td>
								</tr>
				<!-- 表格的布局控制 结束 -->
			
				<tr>
				<td  class="data-table-label">
				
				选择业务系统:<font color="#FF0000">&nbsp;&nbsp;</font>
				</td>
				 <td class="data-table-input">
				<input name="busSystemId_combobox" id="busSystemId_combobox" class="easyui-combobox"  data-options="valueField:'id',textField:'text'" style="" />
				
				</td>
				
				</tr>
				
				
             </table>
		
		</div>
		
		
		
		
		
		<!-- 表单提交-->
		<div data-options="region:'south',border:false," style="height:40px;text-align:center;">
	
			  <table style="width:100%;margin-top:8px;" >
							<tr>
							<td style="align:center;">
								<a href='javascript:void(-1);' onclick="curWinClose();";  class="easyui-linkbutton" data-options="iconCls:'icon-cancel'">关闭</a>
							</td>
							</tr>
				</table>
		</div>
		
		
		
		<div data-options="region:'center',border:true,">
		
		<!-- the baseForm start  -->
		<form id="baseForm" method="post" target="hiddenFrame" style="margin:0px;padding:0px;overflow:hidden;">
			
			<input  name="id" id="id" type="hidden" ></input>
			<input  name="busSystemId" id="busSystemId" type="hidden" ></input>
			
			
			

  			<ul id="tree" class="easyui-tree" data-options="border:true,lines:true,animate:true,checkbox:true,autoCheckParent:true,cascadeCheck:false,toolbar:'#tb'" ></ul>

			</form>
			
			<!-- the baseForm end  -->
			
			
			
			
			
			
			
		</div>
	
	

	<script type="text/javascript">
		
		
		function initPage(){
			 
//			 baseFormClear();
			 document.getElementById('id').value=parent.parent.mainFrame_id.selections.id;
			 parent.showProgressing();
			 sendRequestAjax('../../role/initAuthView.do?responseFunction=initAuthView',initAuthView);
		}
		
		window.onload=function(){
//			 baseFormClear();
			 document.getElementById('id').value=parent.parent.mainFrame_id.selections.id;
			 parent.showProgressing();
			 sendRequestAjax('../../role/initAuthView.do?responseFunction=initAuthView&firstLoad=1',initAuthView);
			 
		}
		
		var responseResultPage;
		
		
		function initAuthView(responseResult){
			
			$('#tree').tree({
					
					data: responseResult.treeData,
					onBeforeCheck: function (node,checked){
						return false;
				   }
			});
			
			
			if(responseResult.firstLoad==1){
				$('#busSystemId_combobox').combobox({
				  		data: responseResult.busSystemData,
				  		value:"",
				  		width:parseInt($("#table_input_base").offsetWidth)+2,
				  		onSelect: function(record){
				  			
							document.getElementById("busSystemId").value=record.id;
							initPage();
							
						}
				  		
				});
			}
			
			selectednodes = $('#tree').tree('getChecked');
			parent.closeProgressing();
		}
		
		
	
		

	
		
	</script>



</body>
</html>